@import "../../../colors";
@import "../../../frameless";

.account-nav {
    .user-info {
        display: inline-block;
        padding: 14px 15px 4px 15px;
        max-width: 260px;
        height: 33px;
        overflow: hidden;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: $type-white;
        font-size: .8125rem;
        font-weight: normal;

        .avatar {
            margin-right: 10px;
            border-radius: 3px;
            width: 24px;
            height: 24px;
            vertical-align: middle;
        }

        &:hover {
            background-color: $active-gray;
        }

        &.open {
            background-color: $active-gray;
        }

        &:after {
            display: inline-block;
            margin-left: 8px;

            background-image: url("/images/dropdown.png");
            background-repeat: no-repeat;
            background-position: center center;
            background-size: 50%;
            width: 20px;
            height: 20px;
            vertical-align: middle;
            content: " ";
        }
    }

    .dropdown {
        top: 50px;
        padding: 0;
        padding-top: 5px;
        width: 100%;
        box-sizing: border-box;
    }
}

//4 columns
@media #{$small} {
    .account-nav {
        margin-left: 0;

        .user-info {
            .avatar {
                margin-right: 0;
            }

            &:after {
                display: none;
            }
        }
    }
}


//6 columns
@media #{$medium} {
    .account-nav {
        margin-left: 0;

        .user-info {
            .avatar {
                margin-right: 0;
            }

            &:after {
                display: none;
            }
        }
    }
}

//8 columns
@media #{$intermediate} {
    .account-nav {
        margin-left: 0;
    }
}
